package qi.testspring02192;

import lombok.Data;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Data
@RestController
@RequestMapping("/r1")
public class T {

    public String name;
    public int age;


    @RequestMapping("/int")
     public int function(){
        T t=new T();
        t.setAge(18);

      return t.getAge();
   }

}
